class AddExpirationDateToNews < ActiveRecord::Migration
  def up
    change_table :news do |t|
      t.date :expiration_date, :null => false
    end
    News.update_all(:expiration_date => Date.today + 30.days)
  end

  def down
    remove_column :news, :expiration_date
  end
end
